PATHMac OS 8 Developer Documentation > Operating System Services > Multiprocessing Services >

Adding Multitasking Capability to Applications Using Multiprocessing Services

   

MPCreateTimer

Creates a timer.

OSStatus MPCreateTimer (MPTimerID *timerID);
timerID
A pointer to a variable of type MPTimerID . On return, the variable contains the ID of the newly created timer.
function result
A result code. See Result Codes for a list of possible values.
DISCUSSION

You can use a timer to notify an event, queue, or semaphore after a specified amount of time has elapsed.

Timer objects are created from dynamically-allocated internal resources. Other tasks may be competing for these resources so it is possible this function may not be able to create one.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

SEE ALSO

The function MPDeleteTimer .

The function MPArmTimer .

The function MPSetTimerNotify .


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)